import QtQuick
import QtQuick.Controls

Item {
    id:root

    QtObject{
        id:data
        property int barWidth: 80
        property int barHeight: 40
    }
    Column{
        spacing: 0
        anchors.fill: parent

        Column{
            id:bar
            Button{
                id:button1
                width: data.barWidth
                height: data.barHeight
                text: "Btm-1"
            }
            Button{
                id:button2
                width: data.barWidth
                height: data.barHeight
                text: "Btm-2"
            }
            Button{
                id:button3
                width: data.barWidth
                height: data.barHeight
                text: "Btm-3"
            }
            Button{
                id:button4
                width: data.barWidth
                height: data.barHeight
                text: "Btm-4"
            }
        }

        Rectangle{
            id:springRectangle
            width:parent.width
            height:root.height - bar.height
            color: "green "
        }
    }
}
